#ifndef LABEL_H_
#define LABEL_H_

#include "../Widget.h"

class Label: public Widget {
public:
	Label(std::string message, Widget* parent, int x, int y, int fontSize);

	Label(std::string message, Widget* parent, int x, int y);

	virtual void handleEvent(Event event);

	virtual void resolve();

	virtual void showOn(SDL_Surface* surface);

	void setMessage(std::string message);

	void setColor(short r, short g, short b);

	virtual ~Label();

private:
	std::string message;
	int fontSize;
	TTF_Font* font;
	SDL_Color textColor;
	SDL_Surface* messageSurface;

	void updateMessageSurface();

};

#endif /* LABEL_H_ */
